import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 获取因子收益率数据风格因子
  getStyleFactorYield: (query) => api.get(`${config.interfaces.type5}maat-workstation/factorExposure/styleFactorYield`, query),
  // 获取因子收益率数据行业因子
  getIndustryFactorYield: (query) => api.get(`${config.interfaces.type5}maat-workstation/factorExposure/industryFactorYield`, query),
  // 获取因子风险风格因子
  getStyleFactorRisk: (query) => api.get(`${config.interfaces.type5}maat-workstation/factorExposure/styleFactorRisk`, query),
  // 获取因子风险行业因子
  getIndustryFactorRisk: (query) => api.get(`${config.interfaces.type5}maat-workstation/factorExposure/industryFactorRisk`, query),
  // 获取最高收益率
  getMaxYield: (query) => api.get(`${config.interfaces.type5}maat-workstation/factorExposure/getMaxYield`, query),
};
